
//Project Management -> Orders
dmdPMApp.directive('orderslist', ['projTabsService', function(projTabsService){
	return {
		restrict:"E",
		scope:{
			tablist:'=',
			ondelete:'&'
		},
		templateUrl:"static/partials/orders/orderslist-directive.html",
		controller:function ($scope, $attrs) {
			$scope.viewOrder = function (orderName, orderId) {
				var orderDetailsTmpl = "<orderdetails projsiteid='" + orderId + "'></orderdetails>";
				projTabsService.addTab(orderName, orderDetailsTmpl);
			};
		}
	};
}]);



//View Order Details. 
dmdPMApp.directive('orderdetails', ['projTabsService', function(projTabsService){
	return {
		restrict:"E",
		scope:{},
		templateUrl:"static/partials/orders/orderdetails-directive.html",
		controller:function ($scope, $attrs) {
			
		}
	};
}]);
